(image-type-header-regexps): Use only JPEG magic number
authorJuri Linkov <juri@jurta.org>
Fri, 28 Aug 2009 23:49:11 +0000 (23:49 +0000)
committerJuri Linkov <juri@jurta.org>
Fri, 28 Aug 2009 23:49:11 +0000 (23:49 +0000)
to determine JPEG images, and don't use `image-jpeg-p' because
Emacs can display non-JFIF non-Exif JPEG images.

lisp/image.el

index 076a969a363cb67d0dd464e49f591558e0a38bc4..92e7560a9ca9eb2c11a9103c9a81b46a5120c77a 100644 (file)
@@ -43,7 +43,7 @@
 static \\(unsigned \\)?char \\1_bits" . xbm)
     ("\\`\\(?:MM\0\\*\\|II\\*\0\\)" . tiff)
     ("\\`[\t\n\r ]*%!PS" . postscript)
-    ("\\`\xff\xd8" . (image-jpeg-p . jpeg))
+    ("\\`\xff\xd8" . jpeg)    ; used to be (image-jpeg-p . jpeg)
     (,(let* ((incomment-re "\\(?:[^-]\\|-[^-]\\)")
             (comment-re (concat "\\(?:!--" incomment-re "*-->[ \t\r\n]*<\\)")))
        (concat "\\(?:<\\?xml[ \t\r\n]+[^>]*>\\)?[ \t\r\n]*<"